import scrapy

class FlagSpider(scrapy.Spider):
    name = 'flag'
    start_urls = [
        'http://www.freeflagicons.com/list/'
    ]

    def parse(self, response):
        for flag in response.css("table.country-list tr"):
            yield {
                'name': flag.css('td a img::attr(alt)').extract_first(),
                'url': flag.css('td a img::attr(src)').extract_first(),
            }
